﻿using System;
using System.Collections.Generic;
using BLL.Services.Messages.Listing;

namespace BLL.Services.Messages
{
    public interface IMessagesService
    {
        Messages GetMessegeById(int messageId);

        void Create(Messages message);

        void Save(Messages messages);

        void Delete(int messageId);

        IEnumerable<Messages> GetAll();

        ListingMessage ListingMessages(int recepientId,int senderId,int page,int size);

        ListingUserMessage GetMesagesByUser(int page, int userId, int size, string column, int direction, ListingUserMessageFilter filter);

        void UpdateNotReadMessage(int senderId, int recipientId, DateTime dateOfRead);
    }
}
